login, logout, templates usw. implemented