Added user registration check