added email validation via phpemail class