checking if user already logged in, redirect if yes