search almost done, registration redesigned to fit database