Client side code started
Email regex moved to lib