Ported login and setup template to jade