cleaning validateLogin()