if user is not logged in submit page redirects to login page