User model

Used Cris' code for the user model.