partil login functionality working

there is a bug that prevents you from logging in at all.