Fix login ajax redirect to home