bug fix - login with out username caused error