ticket:5: user auth implementation and templates fixes