use form_validation library for is_unique check