fix bugs and and UI for register and new post