added flash errors for transaction form
fixed placement of redirect