fix bugx of user register not working