added templates for login and register also added register code