Added js email validation