Throw error messages using session