logging in frontend fix