check login and username and password