Adding methods to User model as well as creating the skeleton for LoginController