add LogInModel and authentication logic