added register and login js files - incomplete