added login template and validating login inputs