User model and load function implemented