check empty of request POST
remove unnecessory code, format HTML files