finished rails api, about to add client-side validation to search field