Checks if user exists before creating a new one.