Fix error flash messages

Fixes issue where error messages are not displayed as a result of using wrong keyword for error flash messages