Added redirect if already logged in