viewing realtime if input already exists in the database