Added modal states for server error and session timeout