Validate presence of username and password arguments
Automatically set authentication username when unspecified