register is now working, but yet to check validity of the register inputs through the API. wordpress is not able to provide validation on certain fields.