Added validate login