Optimised the login window