Added condition to check to see if the email entered already exists in the database or not