added legacy login implementation for CQ5.3 and 5.4