Updated to check if session cookie is available, if not then an error appears telling you to log in.