Programmatically check User Type