adding redirect if already logged in