added email validation for profile edit page
minor fix on register page regarding email validation