Added email fieldand updated js input validation