create if else users controller