main page login works