public static function attemptLogin($user, $password)
 {
     return $user && SecurityService::checkPassword($password, $user->password);
 }