Created controller to select user type