# Virtual attribute for the unencrypted password
attr_accessor :password
-
+ attr_accessor :current_user
+
validates_presence_of :login, :email
validates_presence_of :password, :if => :password_required?
validates_presence_of :password_confirmation, :if => :password_required?