Checking of values in login dialog