working with register and home page
some minor changes to controller