Updated register user for database functionality