add flash messages for user validation