You're overwriting the whole `error_messages` dictionary, while you just want to overwrite key `required`