fixing issue with empty login fields