add LOGIN_URL om settings and refactor login_required decorators in view