Method definition for checking user exists