login cleanup and route fix