made login same as index