checking if username and password exist