Add check_password method to User model