Extracted registration user functionality to user.js file.
Implemented sending registration data from Registration page.