show flash message if registration is successful