tidy up of dead code and fixed login page indentation