rewrite some partion of the code, validte the provided such localhost:1234