User model and authentication finished