Functional log in/out redirects and welcome homepage