fixing login helper method implementation