Working login redirect from homepage