Removed testing flash message.
Added flash message type to background pass back flash message.
null flash message var after use.