class User < ActiveRecord::Base validates_presence_of :login end