added register endpoint (we need to reset db tables after this)