added case for resetting message after success