added redirect if authefication is true