add user model and mod login logic