logging in backend fix