added logic for home page and logic for the registration changed.