reworkd logging in, made sessions useable, templating!