added styling for error messages, and make them disappear after page load