Add code to validate email