Finish login function.
Add user model.