Adds working modal buttons. jQuery validation for inputs using regex.