upraded registration test, added toString() to users, changed user.type field to String