added register form and home pages