implemented login route and custom header templates