fixed bug with empty authentication credentials