Invalid Error Displays Twice.r=rbillings

Used the style="display:none" initially in the DOM if the messages.tags contains "warning" and "modal".
I wasn't sure about this too. That's why to be on safer side, I added the style in HTML code.