added flash messages and before filters for user routes #edit, #update, and #destroy