add validation for email uniqueness
add error_message to json error response