Use flash[:error] for error condition

Also use double quotes rather than string escaping