fixed login and set up modules