added mail validation