(BACKEND TASK)
Implement the regAdmin function in the adminController to handle administrator registration. Ensure that administrator registration details are securely stored in the database. Validation of data is required. Use json web tokens and bcryptjs.