Fixed event delegation in login button