Added Code for email validation, passwrod reset implementation.
Made a lib folder to have function defs