remove old code
minor changes I forgot to commit. loginPath needed for the /unregister and /changepassword parts of registration