You are using strict equality operator ===, make sure your value of user type in database and in the code are same.