adapt error message in login dialog