Added proper error messages for login/create