Redirect to home page after setting a value