adapt redirect according to the type of user