Adding check for users already authenticated