added in email downcast requirement to db