updated redirection check for Home