Fix bug in user model save function.
Add logout link, functionality