User model and login updation