added first version for the loginWindow