lock mainwindow instead login form