Added 2 lost functions in the User model