created getAll() and login() in User.php