add doLogin() method to UsersController;