Fixed login problem

fixed script injection timing to only happen to the frontend