Added the new templates and completed the register,login and logout facility