Fixed validation for username, email and password when empty.