Adding login_required() decorator to prevent the user from accessing /main.html when (s)he is not logged in