Implemented userExists() function.