register user put method replaced with post