updated to work with new login params