email validations and other formatting changes