Modify the condition to check whether the UserName or the Password is empty