fix for authentication error and login form