added user model
added logging in