fixed the modal and the login/logout/profile buttons not working