fixing the deprecated f.error_messages in the admin pages