Update member registration api

Update member registration api to validate password if it's set.