Added logout to user model.