Programmatically check the User Type.