added validation and alerts to email page