added login query to menu