add require common/index in application.js manifest
add foundation of properly way and modify the model and design of register user