added register handler
created login template