add a login helper to the controller