fixes #3935 clear error message in the Login As window

Fixed the issue and pushed the code for review, please check it.