Dynamically set positioning for login window