adding check if user is already logged or not in user view