Adding login_required decorator for views