Several minor bugs for wayf/login fixed.