Added an email validater and other validation checks.