fixed the custom login window
-more control
-fixed the bugs