added sale order function, user to session and user to menu