modified code to redirect user to the login screen on 401
remove login link from the login page, for UX reasons
Move to gorm