Add check passwords method to User class