added ability to choose login field