Moved login event handler from designer to code behind.