check if the user already registered