Complete register function in the backend.
Complete register function in frontend.
Resolve conflict.