fixed login and appropriate page load