Implemented password check inside the User class