forcing http protocol in the redirect to method after logging in