fixed login, missing event listeners