Added hashed_password parameter and logic to use the boolean