login with error messages