checking login attampt