changes to loginredirect