Commented for compilation errors.
Added jquery
Added sample validation
Added portal-ext.properties
Modified config files.
Code is in working condition.