fixed login and edit paths