added server side template for login