Added required text, error holder, and CSS styling.
Completed JavaScript.