Added login & registeration error msg hide/show

Additionally some formating for index.html