Basic port of acts_as_account