text, date, password, and email types shows error when errors passed in