update authentication system to Devise