Add more logging and enforce that usernames and passwords do not have whitespace