merge user model and authenticate