Modified userExists to pass String instead of User object