refactored login window with some new layout