adding more login code. not tested at all. need to add login html