added email validation
fixed function name
function nmae for validate is correct now