converted register from php to html and removed smarty