add switch to application logic on username submit