Fix email validation and min and max validator