switched login template to jade and some colorful error handling