login working with defaultLoc added