Check if username is present, rather than not nil. Allow blank passwords