Register module crashing, needs changes, 400 requests sent