Removed extra code from User model.
Merge pull request #24 from darkmoves/login

Removed extra code from User model.