POSTS error checking - if user is not logged in, redirects user to login screen for all POSTS functions