login, logout, login required for create/edit/delete post, minor tweaks to templates