Write a ‘flash’ helper 

post '/user/add' => sub {

    # ... validate input and create database record ...

    flash "User successfully added";
    redirect '/user';
};