further bug fixes login