User is now redirected from / to /chat if logged in
Fixed user registration redirect and added a flash message for confirmation