prevent showing un expected error message on login page