Changed templating login to clientside