Only show login when both username and password are filled in. fix #2157