auth: fixed small issues, added error messages