enhanced login process

fixes a bug where you couldn’t login