Added LoginWindow with full logic