fix sign up bug on api