Validate username and password by ensuring they are filled in.