fix authentication issue when TMC is not secured by a login...making a login attempt only if the username is specified in the properties file.