Fixed bug with login window.

Wrong behaviour fixed: Login window closed by clicking in input fields.