validate inputs presents for login