changes to delegate login