Username and password validation should ignore leading whitespaces