Registration Fix

I fixed the registration and it appears to be working. The issue seems
to be that when validating it was hitting an error because age and
password were strings. So in index.js a parsed the to int. Then in model
for validation type, I checked if it was a 'number'. Apparently, even
though a parsed as int age and password, it's data type is number.
Hopefully number and int represent the same thing. But I can confirm
that the new user is added to table when data is entered correctly atm.
Someone might want to confirm this.