Updated submit post to redirect if the user has not logged in