modified index| added register and login form