Only authenticate if username is set