get register working with flask request