1. Some bugs fixed
2. new way of handling required element validator