Added tests to check that valid users are redirected to home page