Added method to check if user is registered