Use array of errors to flash messages on register.