added login helper