Added check in postFormData for expired session